<link rel="stylesheet" type="text/css" href="http://www.12301.cc/css/aliceui.min.css"/>
<link rel="stylesheet" type="text/css" href="http://www.12301.cc/css/c_common.css"/>
<link rel="stylesheet" type="text/css" href="http://www.12301.cc/css/terminal_chk_set.css"/>
<link rel="stylesheet" type="text/css" href="js/dataTable/jquery.dataTables_set.min.css">
<link rel="stylesheet" type="text/css" href="http://www.12301.cc/css/common/www.12301.cc.global.css"/>
<script type="text/javascript" charset="utf8" src="js/dataTable/jquery.dataTables_set.min.js"></script>
<script type="text/javascript" src="http://www.12301.cc/js/global/www.12301.cc.global.js"></script>
<style>
.overall{position:relative;top:10px;width:200px;}
</style>
<div class="clay">
    <div class="content">
		<ul id="tabHead" class="tabHead clearfix">
			<!-- <li class="profit" onclick="window.location.href='prodlists.html'">自供应产品</li>
			<?if($_SESSION['com_type']!=='景区' && $status!==2):?>
			<li class="prodai" onclick="window.location.href='prod_sale.html'">转分销产品</li> 
			<?endif;?> -->
            <li class="citydai <?/*if(count($var['prods'])){?>active <?}*/?>">终端验证设置</li>
		</ul> 
		<div class="termina_set">
			<div id="prod_sale_tip" >
				<p class="ui-tiptext">
                    配置说明信息：
<!--                    如果“软终端验证设置”为【关闭】状态，那么该产品的订单将不使用票付通终端机进行验证。-->
				</p>
				<p class="ui-tiptext ui-tiptext-warning">
                    0. 【全局配置】，可一键配置平台的所有产品是否使用新终端服务器,但无法影响【自启用】状态的产品；<br/>
                    1. 【不启用】状态，即默认使用票付通终端机验票；<br/>
                    2. 【启用】状态，暂时不使用终端服务器；<br/>
                    3. 【自启用】状态，只能个别配置，【自启用】状态的产品，不会受全局配置的影响；<br/>
				</p>
			</div>

			<div class="gsetBox">
	            <span class="t">全局配置：</span>
                <a class="global-config-set <?=$global_terminal_set==0?'selected':''?>" data-type="0" href="javascript:;"><i class="iconfont">&#xe668;</i>不启用</a>
                <a class="global-config-set <?=$global_terminal_set==1?'selected':''?>" data-type="1" href="javascript:;"><i class="iconfont">&#xe668;</i>启用</a>
            </div>


			 <!--<div class="overall">-->
				<!--全局配置:<span id="global_set" class="yujbtn <?=($global_terminal_type==1)?'':'onyuj'?>"></span>-->
			<!--</div>-->

			
			<table id="listTable" class="proTable fixed">
				<thead id="proTableHead">
					<tr>
<!--						<th class="col_1">景区ID</th>-->
						<th class="col_1">ID</th>
						<th class="col_2">产品名称</th>
						<th class="col_3">终端号</th>
						<th class="col_4">是否使用新终端服务器</th>
					</tr>
				</thead>
				<tbody id="ter_set">
					<?foreach($var['prods'] as $prod):?>
					<tr class="listBody borderBottom">
<!--						<td class="col_1 col" rowspan="1"><span class="test" >--><?//=$prod['id']?><!--</span></td>-->
						<td class="col_1 col" data-lid="<?=$prod['id']?>"><?=$prod['salerid']?></td>
                        <td class="col_2 col">
							<span class="numPrice" ><?=$prod['title']?></span>
						</td>
						<td class="col_3 col">
							<span class="numPrice" ><?=$prod['terminal']?></span>
						</td>
						<td class="col_4 col">
                            <?php if($prod['terminal_type']==1):?>
                                已启用
                            <?php else:?>
                            <select data-t="<?=$prod['terminal_type']?>" data-id="<?=$prod['id']?>" class="terminal" name="terminal_type">
                                <option value="0" <?=$prod['terminal_type']==0?'selected':''?>>不启用</option>
                                <option value="1" <?=$prod['terminal_type']==1?'selected':''?>>启用</option>
                                <option value="2" <?=$prod['terminal_type']==2?'selected':''?>>自启用</option>
                            </select>
                            <?php endif;?>
<!--							<span class="yujbtn --><?//=($prod['terminal_type']==1)?'':'onyuj'?><!--"-->
<!--                                  data-type="--><?//=$prod['terminal_type']?><!--" data-id="--><?//=($prod['id'])?><!--"-->
<!--                                  id="yuj"></span>-->
						</td>
					</tr> 
					<?endforeach;?>
				</tbody>
			</table>

<?if($_SESSION['sid']==1){page($count,$currentPage,$pageSize,$order,$by);}?>
		</div>	
    </div>
</div>
<script type="text/javascript" src="http://www.12301.cc/js/terminal_chk_set.js"></script>